micro_utils.dokka
0.12.4
android
common
jvm
micro_utils.dokka
/
dev.inmo.micro_utils.common
/
[common]Either
Either
common
interface
Either
<
T1
,
T2
>
Content copied to clipboard
Realization of this interface will contains at least one not null -
optionalT1
or
optionalT2
Properties
Extensions
See also
Inheritors
See also
common
dev.
inmo.
micro_utils.
common.
Either
First
dev.
inmo.
micro_utils.
common.
Either
Second
Either.
Companion.
first
Either.
Companion.
second
Either.
onFirst
Either.
onSecond
Either.
mapOnFirst
Either.
map
On
Second
Properties
optional
T1
Link copied to clipboard
common
abstract
val
optionalT1
:
Optional
<
T1
>
Content copied to clipboard
optional
T2
Link copied to clipboard
common
abstract
val
optionalT2
:
Optional
<
T2
>
Content copied to clipboard
t1Or
Null
Link copied to clipboard
common
open
val
t1OrNull
:
T1
?
Content copied to clipboard
t2Or
Null
Link copied to clipboard
common
open
val
t2OrNull
:
T2
?
Content copied to clipboard
Inheritors
EitherFirst
Link copied to clipboard
EitherSecond
Link copied to clipboard
Extensions
map
On
First
Link copied to clipboard
android
common
jvm
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
Content copied to clipboard
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
Content copied to clipboard
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
Content copied to clipboard
map
On
Second
Link copied to clipboard
android
common
jvm
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?
Content copied to clipboard
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?
Content copied to clipboard
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?
Content copied to clipboard